//
//  RegisterView.h
//  LoverGo
//
//  Created by YeXiao on 14-1-18.
//  Copyright (c) 2014年 yexiao. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum {
    RegisterTypeCanel = 0,
    RegisterTypeSub
}RegisterType;

@class RegisterView;

@protocol RegisterViewDelegate <NSObject>

-(void)RegisterView:(RegisterView*)view withType:(RegisterType)type;

@end

@interface RegisterView : UIControl<UITextFieldDelegate>
{
    UITextField* _nameTF;
    UITextField* _passwordTF;
    UITextField* _emailTF;
    id<RegisterViewDelegate> _delegate;
    
}
@property UITextField* nameTF;
@property UITextField* passwordTF;
@property UITextField* emailTF;
@property id<RegisterViewDelegate> delegate;

-(void)btnClieck:(UIButton*)btn;

@end
